package com.dog.basics.bean.dto.admin.mtkj;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * <p>
 * 设备锁
 * </p>
 *
 * @author wph
 * @since 2020-09-29
 */
@Data

public class LockAddDto {
    /**
     * 设备锁编码
     */
    @NotBlank(message = "设备锁编码不能为空")
    @ApiModelProperty(value = "设备锁编码(32)", dataType = "String", required = true)
    @Size(min = 1, max = 32, message = "设备锁编码不正确(1-32)")
    private String devCode;

    /**
     * 设备锁蓝牙名称
     */
    @NotBlank(message = "设备锁蓝牙名称不能为空")
    @ApiModelProperty(value = "设备锁蓝牙名称(30)", dataType = "String", required = true)
    @Size(min = 1, max = 30, message = "设备锁蓝牙名称不正确(1-30)")
    private String devBluetoothName;

    /**
     * 设备类型 : 0-轮椅 1-平推车 2-陪护床
     */
    @NotNull(message = "设备类型不能为空")
    @ApiModelProperty(value = "设备类型 : 0-轮椅 1-平推车 2-陪护床", dataType = "Integer", required = true)
    @Min(value = 0, message = "设备类型只能是:(轮椅丶平推车丶陪护床)")
    @Max(value = 2, message = "设备类型只能是:(轮椅丶平推车丶陪护床)")
    private Integer wheeType;


    /**
     * 设备锁名称
     */
    @NotBlank(message = "设备锁名称不能为空")
    @ApiModelProperty(value = "设备锁名称(20)", dataType = "String", required = true)
    @Size(min = 1, max = 20, message = "设备锁名称不正确(1-20)")
    private String devName;

    /**
     * 设备锁类型 : 0 -蓝牙WIFI 1-蓝牙 2-WIFI
     */
    @NotNull(message = "设备锁类型不能为空")
    @ApiModelProperty(value = "设备锁类型: ( 0 -蓝牙WIFI 1-蓝牙 2-WIFI )", dataType = "Integer", required = true)
    @Min(value = 0, message = "设备锁类型只能是:( 0 -蓝牙WIFI 1-蓝牙 2-WIFI)")
    @Max(value = 2, message = "设备锁类型只能是:(0 -蓝牙WIFI 1-蓝牙 2-WIFI )")
    private Integer devType;

    /**
     * 分配代理商标识 (-1为未分配)
     */
    @ApiModelProperty(value = "分配代理商标识", dataType = "Long", required = false)
    private Long devAgentUserId;
    /**
     * 医院标识 (-1为未分配)
     */
    @ApiModelProperty(value = "医院标识", dataType = "Long", required = false)
    private Long hospitalId;

    /**
     * 省标识
     */
/*    @NotNull(message = "省标识不能为空")
    @ApiModelProperty(value = "省标识", dataType = "Long", required = true)
    private Long provinceId;*/

    /**
     * 市标识
     */
/*    @NotNull(message = "市标识不能为空")
    @ApiModelProperty(value = "市标识", dataType = "Long", required = true)
    private Long cityId;*/

    /**
     * 区标识
     */
/*    @NotNull(message = "区标识不能为空")
    @ApiModelProperty(value = "区标识", dataType = "Long", required = true)
    private Long areaId;*/

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", dataType = "String", required = false)
    private String detailedAddress;



}
